package com.hukun.singleton;

import javafx.animation.Animation;

public class Test {

    public static void main(String[] args) {


        Animal annimal = Animal.getInstance2();
        Animal annimal2 = Animal.getInstance2();
        Animal annimal3 = Animal.getInstance2();
        Animal annimal4 = Animal.getInstance2();
        Animal annimal5 = Animal.getInstance2();

        System.out.println(annimal==annimal2);
        System.out.println(annimal2==annimal3);
        System.out.println(annimal3==annimal4);
        System.out.println(annimal4==annimal5);

    }
}
